package com.igbeok.miscellaneous.concurrency.join;

import org.junit.Test;

import com.igbeok.miscellaneous.concurrency.LiftOff;

public class JoinTest {

	@Test
	public void basicThread(){
		Thread thread = new Thread(new LiftOff());
		thread.start();
		System.out.println("Waiting for Lift Off");
	}
	
	@Test
	public void basicThreadJoin(){
		Thread thread = new Thread(new LiftOff());
		thread.start();
		try {
			thread.join();
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		System.out.println("Waiting for Lift Off");
	}
}
